using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lists;
using GeneralLibs;

namespace BasicForms
{
    public partial class FrmEditKhoLimit : FrmOKCancel
    {
        public FrmEditKhoLimit()
        {
            InitializeComponent();
        }

        private void FrmEditKhoLimit_Load(object sender, EventArgs e)
        {
            numericTexBoxSoLuongKhoToiDa.Text = Config.NumberOfKhoLimit.ToString();
        }

        private void btnOK_Click_1(object sender, EventArgs e)
        {
            Config.NumberOfKhoLimit = Convert.ToInt32(numericTexBoxSoLuongKhoToiDa.Text.Trim().ToString());
            DanhMucDoiTuong.ReloadAllDanhMuc();
        }
    }
}